package com.eedi.framework.notify.enums;

import com.eedi.framework.common.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 通知类型
 *
 * @author 永聚长青源码
 */
@Getter
@AllArgsConstructor
@ToString
public enum SysNoticeTypeEnum implements BaseEnum<Integer,String> {

    NOTICE(1, "通知"),
    ANNOUNCEMENT(2,"公告");

    /**
     * 类型
     */
    private final Integer type;

    private final String name;

    @Override
    public Integer getCode() {
        return this.type;
    }

    @Override
    public String getDesc() {
        return this.name;
    }

    @Override
    public String title() {
        return "通知类型";
    }
}
